package cn.springcloud.fix.common.security.annotation;

import cn.springcloud.fix.common.security.SecurityAutoConfiguration;
import cn.springcloud.fix.common.security.support.BeanDefinitionRegistrar;
import org.springframework.context.annotation.Import;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.TYPE})
@Documented
@Inherited
@EnableGlobalMethodSecurity(prePostEnabled = true)
@Import({SecurityAutoConfiguration.class, BeanDefinitionRegistrar.class})
public @interface EnableSecurityServer {
}
